<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<title>聊天室</title>
</head>
<body>
<table style="width:800px">
<tr><td></td>
</table>

</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
	getNameList();
	
	getMessage();
});

function getNameList(){
	$get("NameListServlet",function(data)){
		var users =data.split(",");
		var dom="";
		dom=users.join<"<br/>">
		$(#nameList).html(dom);
	},"text");
}
function getNameList(){
	$get("ChatMessageServlet",function(data)){
		var users =data.split("||");
		var dom=message.join("<br/>");
		$(#message).html(dom);
	},"text");
}
function logout(){
	windows.location="Login.html";
}
function sendChat(){
	
}

  
</script>